﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<Ditto.Models.User>" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    <%: Model.UserID %>
</asp:Content>

<asp:Content ID="details" ContentPlaceHolderID="MainContent" runat="server">

<div id="itemDiv">

    <div class="widget">
        <% Html.RenderPartial("Photo"); %>
    </div>


    <% if (!Model.Is(Context.User.Identity.Name))
       { %>
            <div style="vertical-align:middle;text-align:center;margin-bottom:20px">
                <% Html.RenderAction("FriendStatus", new { otherUser = Model.UserID }); %>
            </div>
     <%}
       else
       {%>

        <div class="widget">
            <% Html.RenderAction("FriendRequests", new { id = Model.UserID }); %>
        </div>

     <%} %>


    <div class="widget">
        <% Html.RenderAction("Friends", new { id = Model.UserID }); %>
    </div>
</div>

<div id="mapDiv">
    <h2 style="font-weight:bold;font-size:x-large">
        <%: Model.UserID %>
    </h2>

    <div style="margin-bottom:20px;width:auto;">
    <% Html.RenderAction("Reputation", new { id = Model.UserID }); %>
    </div>

    <div class="widget">
        <% Html.RenderAction("ItemsPosted", new { id = Model.UserID }); %>
    </div>

    <div class="widget">
        <% Html.RenderAction("User", "Comments", new {userID = Model.UserID}); %>
    </div>
</div>

</asp:Content>